<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜 - 库存调整</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen">
    <div class="flex h-screen">
        <!-- 侧边栏 -->
        <div class="w-64 bg-white shadow-lg">
            <div class="p-6">
                <h1 class="text-2xl font-bold text-blue-800">智慧配镜</h1>
                <p class="text-sm text-gray-500 mt-1">管理后台</p>
            </div>
            <nav class="mt-6">
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                    主要功能
                </div>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/home.svg" class="w-5 h-5 mr-3">
                    控制台
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-blue-600 bg-blue-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/package.svg" class="w-5 h-5 mr-3">
                    商品管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/clipboard-list.svg" class="w-5 h-5 mr-3">
                    订单管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/users.svg" class="w-5 h-5 mr-3">
                    用户管理
                </a>
            </nav>
        </div>

        <!-- 主内容区域 -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- 顶部导航栏 -->
            <header class="bg-white shadow-sm">
                <div class="flex items-center justify-between px-6 py-4">
                    <div class="flex items-center">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/menu.svg" class="w-5 h-5">
                        </button>
                        <div class="ml-4">
                            <h2 class="text-lg font-semibold text-gray-900">库存调整</h2>
                            <p class="text-sm text-gray-500">调整商品库存数量</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/bell.svg" class="w-5 h-5">
                        </button>
                        <div class="flex items-center">
                            <img src="https://ui-avatars.com/api/?name=管理员&background=0D8ABC&color=fff" class="w-8 h-8 rounded-full">
                            <span class="ml-2 text-sm font-medium text-gray-700">管理员</span>
                        </div>
                    </div>
                </div>
            </header>

            <!-- 内容区域 -->
            <main class="flex-1 overflow-y-auto p-6">
                <div class="max-w-3xl mx-auto">
                    <!-- 库存调整表单 -->
                    <div class="bg-white rounded-lg shadow-sm p-6">
                        <h3 class="text-lg font-medium text-gray-900 mb-6">调整库存</h3>
                        <form>
                            <!-- 商品选择 -->
                            <div class="mb-6">
                                <label class="block text-sm font-medium text-gray-700 mb-2">选择商品</label>
                                <div class="relative">
                                    <input type="text" placeholder="搜索商品名称或SKU" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                    <button class="absolute right-3 top-2 text-gray-400 hover:text-gray-600">
                                        <img src="https://unpkg.com/lucide-static@latest/icons/search.svg" class="w-5 h-5">
                                    </button>
                                </div>
                                <div class="mt-4">
                                    <div class="flex items-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 cursor-pointer">
                                        <img src="https://via.placeholder.com/40" class="w-10 h-10 rounded-md mr-4">
                                        <div class="flex-1">
                                            <p class="text-sm font-medium text-gray-900">时尚金属镜框</p>
                                            <p class="text-xs text-gray-500">SKU: FR-001</p>
                                        </div>
                                        <div class="text-right">
                                            <p class="text-sm text-gray-500">当前库存: 5</p>
                                            <p class="text-xs text-red-500">库存不足</p>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <!-- 调整类型和数量 -->
                            <div class="grid grid-cols-2 gap-6 mb-6">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">调整类型</label>
                                    <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                        <option>入库</option>
                                        <option>出库</option>
                                        <option>盘点调整</option>
                                        <option>损耗调整</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">调整数量</label>
                                    <div class="relative">
                                        <input type="number" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="输入调整数量">
                                        <div class="absolute right-3 top-2 text-gray-400">件</div>
                                    </div>
                                </div>
                            </div>

                            <!-- 调整原因 -->
                            <div class="mb-6">
                                <label class="block text-sm font-medium text-gray-700 mb-2">调整原因</label>
                                <textarea rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="请输入调整原因..."></textarea>
                            </div>

                            <!-- 操作按钮 -->
                            <div class="flex justify-end space-x-4">
                                <button type="button" class="px-4 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                    取消
                                </button>
                                <button type="submit" class="px-4 py-2 text-sm text-white bg-blue-600 rounded-lg hover:bg-blue-700">
                                    确认调整
                                </button>
                            </div>
                        </form>
                    </div>

                    <!-- 最近调整记录 -->
                    <div class="bg-white rounded-lg shadow-sm p-6 mt-6">
                        <h3 class="text-lg font-medium text-gray-900 mb-4">最近调整记录</h3>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">时间</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">商品</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">类型</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">数量</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作人</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 text-sm text-gray-500">2024-03-15 14:30</td>
                                        <td class="px-6 py-4 text-sm text-gray-900">时尚金属镜框</td>
                                        <td class="px-6 py-4">
                                            <span class="px-2 py-1 text-xs font-medium text-green-600 bg-green-100 rounded-full">入库</span>
                                        </td>
                                        <td class="px-6 py-4 text-sm text-gray-500">+50</td>
                                        <td class="px-6 py-4 text-sm text-gray-500">张三</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 text-sm text-gray-500">2024-03-15 10:15</td>
                                        <td class="px-6 py-4 text-sm text-gray-900">防蓝光镜片</td>
                                        <td class="px-6 py-4">
                                            <span class="px-2 py-1 text-xs font-medium text-purple-600 bg-purple-100 rounded-full">出库</span>
                                        </td>
                                        <td class="px-6 py-4 text-sm text-gray-500">-2</td>
                                        <td class="px-6 py-4 text-sm text-gray-500">李四</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
</body>
</html> 